import sys
sys.path.insert(0, '../../../')
import django
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tenth_power.settings.dev')
django.setup()

from xyz.models import User


User.objects.create_user(username='xyuzi3',
                         password='123456789')

my_user = User.objects.get(id=1)
# my_user.set_password('ohmygirl')
# my_user.save()
# user = User.objects.get(id=2)
# # user.fans.add(my_user)
# user.fans.remove(my_user)